package cn.DesignModel.factoryMethod;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class PizzaFactory extends PizzaStore {

    @Override
    protected Pizza createPizza(String type) {
        switch (type) {
            case "cheese":
                return new CheesePizza();
            case "durian":
                return new DurianPizza();
            default:
                break;
        }
        return null;
    }


}
